package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CreditHotelMapper;
import com.ruoyi.system.domain.CreditHotel;
import com.ruoyi.system.service.ICreditHotelService;

/**
 * 酒店信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
@Service
public class CreditHotelServiceImpl implements ICreditHotelService 
{
    @Autowired
    private CreditHotelMapper creditHotelMapper;

    /**
     * 查询酒店信息
     * 
     * @param hotelId 酒店信息主键
     * @return 酒店信息
     */
    @Override
    public CreditHotel selectCreditHotelByHotelId(Long hotelId)
    {
        return creditHotelMapper.selectCreditHotelByHotelId(hotelId);
    }

    /**
     * 查询酒店信息列表
     * 
     * @param creditHotel 酒店信息
     * @return 酒店信息
     */
    @Override
    public List<CreditHotel> selectCreditHotelList(CreditHotel creditHotel)
    {
        return creditHotelMapper.selectCreditHotelList(creditHotel);
    }

    /**
     * 查询可用的酒店信息列表
     * 
     * @return 酒店信息
     */
    @Override
    public List<CreditHotel> selectAvailableCreditHotelList()
    {
        return creditHotelMapper.selectAvailableCreditHotelList();
    }

    /**
     * 新增酒店信息
     * 
     * @param creditHotel 酒店信息
     * @return 结果
     */
    @Override
    public int insertCreditHotel(CreditHotel creditHotel)
    {
        return creditHotelMapper.insertCreditHotel(creditHotel);
    }

    /**
     * 修改酒店信息
     * 
     * @param creditHotel 酒店信息
     * @return 结果
     */
    @Override
    public int updateCreditHotel(CreditHotel creditHotel)
    {
        return creditHotelMapper.updateCreditHotel(creditHotel);
    }

    /**
     * 批量删除酒店信息
     * 
     * @param hotelIds 需要删除的酒店信息主键
     * @return 结果
     */
    @Override
    public int deleteCreditHotelByHotelIds(Long[] hotelIds)
    {
        return creditHotelMapper.deleteCreditHotelByHotelIds(hotelIds);
    }

    /**
     * 删除酒店信息信息
     * 
     * @param hotelId 酒店信息主键
     * @return 结果
     */
    @Override
    public int deleteCreditHotelByHotelId(Long hotelId)
    {
        return creditHotelMapper.deleteCreditHotelByHotelId(hotelId);
    }
} 